package com.jingdianjichi.auth.common.entity;

/**
 * 分页信息实体
 */
public class PageInfo {
    private Integer pageNum = 1;
    private Integer pageSize = 20;

    public Integer getPageNum() {
        if (pageNum == null || pageNum <= 0) {
            return 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize <= 0) {
            return 20;
        }
        return pageSize;
    }
}
